<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layui</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
    <script src="./layui/layui.js"></script> </head>

<body>
    <div id='test'></div>
    <script>
        layui.use('laypage', function () {
           var page = layui.laypage;
           // 创建一个laypage实例
           var inst = page.render({
               elem: 'test',
               count: 50 // 数据总数，从服务端得到
           })
        });
    </script>
</body>

</html>